package org.yunshang.style.domain.bo;

import org.yunshang.common.core.validate.AddGroup;
import org.yunshang.common.core.validate.EditGroup;
import org.yunshang.style.domain.TStyle;
import org.yunshang.common.mybatis.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 款式管理业务对象 t_style
 *
 * @author Lion Li
 * @date 2024-03-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TStyle.class, reverseConvertGenerate = false)
public class TStyleBo extends BaseEntity {

    private Long id;

    /**
     * 款式
     */
    @NotBlank(message = "款式不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 类型（1=猪肠带, 2=无缝带, 0=其他）
     */
    @NotBlank(message = "类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;

    /**
     * 状态（0=启用，1=禁用）
     */
    private String status;


}
